package example08;

public abstract class Polygon {
	protected int width, height;
	public Polygon (int a, int b)
	{
		width=a;
	}
	public void setValues(int a, int b)
	{
		width=a;
		height=b;
	}
	abstract public int area();
}
class Rectangle extends Polygon
{
	public Rectangle(int w, int h) {
		super(w,h);
		height=h;
	}
	
	
	public int area()
	{
		return (width*height);
	}
}
